<!--控制代码，判断是否需要加载-->
<% begin %>
<% flow_flag = '0' %>
<% corpid = Setting["plugin_redmine_work_wechat"]["dingtalk_corp_id"] %>
<% corpsecret = Setting["plugin_redmine_work_wechat"]["dingtalk_corp_secret"] %>
<% approval_dept_id = Setting["plugin_redmine_work_wechat"]["dingtalk_approval_dept_id"] %>
<% appid = Setting["plugin_redmine_work_wechat"]["dingtalk_app_id"] %>
<% approval_flow_no = Setting["plugin_redmine_work_wechat"]["dingtalk_approval_flow_no"] %>
<% rescue %>
  <% return %>
<% end %>
<% if flow_flag == '0' || corpid.blank? || corpsecret.blank? || appid.blank? || approval_dept_id.blank? || approval_flow_no.blank? %>
  <% return %>
<% end %>

<%= link_to l(:label_dingtalk_flow_start), start_dingtalk_flow_path %>